package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ASUS
 * Date: 2023-11-06
 * Time: 17:03
 */
public class Test4 {
    public static boolean func3(int[] array) {
        int count = 0;
        for (int i = 0; i < array.length; i++) {
            if (array[i] % 2 != 0) {
                count++;
                if (count == 3) {
                    return true;
                }
            }else {
                    count = 0;
            }

        }
        return false;
    }
    public static void main(String[] args) {
        int[] array = {1,9,5,9,1,9,9,9,9,9};
        System.out.println(func3(array));
    }
}
